	<h4>Daftar Penerima Beasiswa</h4>
	<table id="recievers">
		<thead>
			<tr>
				<th>NPM</th>
				<th>Nama</th>
				<th>Prodi</th>
				<th>Nama Beasiswa</th>
				<th>Awal Periode</th>
				<th>Akhir Periode</th>	
				<th>Keterangan</th>	
			</tr>
		</thead>
		<tfoot>
			<?php echo $pager; ?>
		</tfoot>
		<tbody>
<?php 
	$flag = FALSE;
	foreach ($data as $key => $recievers) :
		if ($recievers != NULL) :
			$flag = TRUE;
			foreach ($recievers as $reciever) :
?>
			<tr>
				<td align="center"><?php echo $reciever['number']; ?></td>
				<td><?php echo anchor('mahalum/student/profile/index?id='.$reciever['id'], $reciever['student'], array('target' => '_blank')); ?></td>
				<td align="center"><?php echo $reciever['major']; ?></td>
				<td><?php echo $reciever['name']; ?></td>
				<td align="center"><?php echo date(MONTH_YEAR_FORMAT, strtotime($reciever['period_start'])); ?></td>
				<td align="center"><?php echo date(MONTH_YEAR_FORMAT, strtotime($reciever['period_end'])); ?></td>
				<td><?php echo $reciever['details']; ?></td>
			</tr>			
<?php
			endforeach;
		endif;
	endforeach;
	if ($flag == FALSE) :
?>
			<tr>
				<td align="center" colspan="7"><span class="info">Tidak ada data yang sesuai dengan kriteria.</span></td>
			</tr>
<?php endif; ?>
		</tbody>
	</table>
	<div class="clear"><?php echo nbs(); ?></div>
<?php echo '</div>'; ?>

<script type="text/javascript">
	$(document).ready(function() {
		$('#recievers').tablesorter({
			widthFixed: true,
			widgets: ['zebra']
		}).tablesorterPager({
			container: $(".pager")
		});
	});
</script>
